package effective_java.singleton;

public class SingletonPatternDemo {
    public static void main(String[] args) {
        SingleObject singleObject = SingleObject.getInstance();
        SingleObject singleObject1 = SingleObject.getInstance();
        System.out.println(singleObject == singleObject1);

        NotSingle notSingle = new NotSingle();
        NotSingle notSingle1 = new NotSingle();
        System.out.println(notSingle == notSingle1);
    }
}
